package com.wing.system.model.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.system.model.entity.SystemRuleInfo;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import java.math.BigDecimal;

/**
 * 显示/规则配置VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class SystemRuleInfoVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 是否显示价格
     */
    private Boolean showPriceFlag;

    /**
     * 总价控制
     */
    private BigDecimal total;

    private Boolean totalFlag;

    private Boolean spaceUserShareFlag;

    private Boolean spaceSkuShareFlag;

    private Boolean spaceTempMoreFlag;

    private Boolean spaceTempUserShareFlag;

    private Boolean spaceTempSkuShareFlag;

    private Integer defaultAlarmStock;

    private Integer defaultSpaceQuantity;

    private Boolean abFlag;


    private Boolean devicePageFlag;

    private Boolean lifeFlag;

    private Boolean warehouseInventoryFlag;

    private Boolean outOrderFlag;
    /**
     * 工单方式
     */
    private SystemRuleInfo.WorkOrderWay workOrderWay;

    /**
     * 工单方式描述
     */
    @TableField(exist = false)
    private String workOrderWayDesc;

    public String getWorkOrderWayDesc() {
        return workOrderWay.getDesc();
    }

    /**
     * 库存告警管理员
     */
    private String  inventoryManageUserId;

    private Boolean recycleCauseRequired;

    private Boolean outFirstCellCabFlag;
    /**
     * 换刀时间
     */
    private Integer changeTime;
}
